package com.atguigu.tingshu.album.service;

import com.alibaba.fastjson.JSONObject;
import com.atguigu.tingshu.common.result.Result;
import com.atguigu.tingshu.model.album.TrackInfo;
import com.atguigu.tingshu.query.album.TrackInfoQuery;
import com.atguigu.tingshu.vo.album.TrackInfoVo;
import com.atguigu.tingshu.vo.album.TrackListVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tencentcloudapi.common.exception.TencentCloudSDKException;
import org.springframework.validation.ObjectError;
import org.springframework.web.multipart.MultipartFile;

import java.util.Map;

public interface TrackInfoService extends IService<TrackInfo> {

    IPage<Map<String, Object>> findAlbumTrackPage(Page<Map<String, Object>> mapWithPage, Long albumId);

    IPage<TrackListVo> findUserTrackPage(Page<TrackListVo> trackListWithPage, TrackInfoQuery trackInfoQuery);

    JSONObject uploadTrack(MultipartFile file);

    void saveTrackInfo(TrackInfoVo trackInfoVo) throws TencentCloudSDKException;
}
